Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: minor optimization of market actor diffing #78

Merged
merged 2 commits into from
Oct 8, 2020

Conversation

iand
Copy link
Contributor

@iand iand commented Oct 8, 2020

The first commit adds a test for market actor state diffing and adds a mock API that will help with writing future unit tests for actor state extraction.

The second commit changes the implementation of market state extraction to combine the deal and proposal diffing into a single predicate so the old and new actor states are only loaded once.

@iand iand requested review from frrist and placer14 and removed request for frrist October 8, 2020 13:46
@iand iand self-assigned this Oct 8, 2020
Copy link
Member

@frrist frrist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iand iand merged commit 9146893 into master Oct 8, 2020
@iand iand deleted the iand/market-diff-optimization branch October 8, 2020 19:20
placer14 added a commit that referenced this pull request Oct 14, 2020
* origin/master:
  fix: remove errgrp from UnindexedBlockData persist
  fix: verify there are no missing migrations before migrating (#89)
  chore: add tests for reward and power actor state extracters (#83)
  feat: support v2 actor codes (#84)
  feat(debug): Process actor by head without persistance (#86)
  fix: use debugf logging method in message processor (#82)
  feat(task): Create chainvis views and refresher (#77)
  perf: minor optimization of market actor diffing (#78)
  chore: fail database tests if VISOR_TEST_DB not set (#79)
  test(storage): add test to check for duplicate schema migrations (#80)
  in-process lotus "repo" lens (#75)

 Conflicts:
        tasks/actorstate/miner.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants